#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_exam1.py
# author:王雯雯
# datetime:2024-11-12 
# software: PyCharm

class Course:
    def __init__(self, cno, cname, chours, credit, tno, student_count):
        self.cno = cno
        self.cname = cname
        self.chours = chours
        self.credit = credit
        self.tno = tno
        self.student_count = student_count

    def __str__(self):
        return f"课程编号: {self.cno}, 课程名称: {self.cname}, 学时: {self.chours}, 学分: {self.credit}, 教师编号: {self.tno}, 学生选课人数: {self.student_count}"